<script>
    import MethodChannel from '@/api/MethodChannel.js'
    import {getLoginInfo} from "@/api/utils.js"

    export default {
        onLaunch: function (options) {
            console.log('App Launch', options);
            getLoginInfo();
            // 接收原生扫描传值
            MethodChannel.on("scanCodeEmit",(res)=>{
                console.log("scanCodeEmit=",res)
                uni.$emit('scanCodeEmit',res)
            })
        },
        onShow: function () {
            console.log('App Show')
        },
        onHide: function () {
            console.log('App Hide')
        },
    }
</script>

<style lang="scss">
    @import "uview-ui/index.scss";
    @import './common/common.scss';
</style>
